package developer.zyk.ability.knowledge.parsers.fileParser;

import developer.zyk.ability.knowledge.common.KnowledgeUploadStatus;
import developer.zyk.global.common.consts.FileType;
import org.springframework.ai.document.Document;

import java.io.File;
import java.util.List;
import java.util.function.BiConsumer;

/**
 * @author zhangyongkang
 * @time 2025/5/15 10:14
 * @description
 */
public interface FileParserHandler {

    List<FileType> supportFileType();

    List<Document> parse(File file, BiConsumer<KnowledgeUploadStatus, String> statusSync);

}
